Operating System Event Manager
Accessing Events
GetNextEvent Obtain next available event of specified type(s)
WaitNextEvent MultiFinder-aware version of GetNextEvent()
EventAvail Get an event without removing it from the queue
FlushEvents Discard all or selected events from event queue
SetEventMask Set system event mask (disable/enable events)
GetOSEvent Low-level read ( remove) next event from queue
OSEventAvail Low-level read event without dequeuing it
PostEvent Place an EventRecord in the event queue
PPostEvent Enqueue an event and get its address
AcceptHighLevelEvent Accept a high-level event
PostHighLevelEvent Send high-level event to another application
GetSpecificHighLevelEvent Select (and retrieve) specific HLE
GetProcessSerialNumberFromPortName Get PSN of a process
GetPortNameFromProcessSerialNumber Get port name of a process
Mouse and Keys
Button See if the mouse button is up or down
GetMouse Obtain the current position of the mouse
StillDown See if button remained down since last pressed
WaitMouseUp Test mouse still down and discard mouseUp event
GetKeys Get a map of the state (up or down) of all keys
KeyTrans Map virtual key codes to ASCII values
Timing
GetCaretTime Obtain insertion-point cursor blink interval
GetDblTime Find max delay between clicks of a double click
GetEvQHdr Get address of event queue header
TickCount Get current system tick count